<%--
  Created by IntelliJ IDEA.
  User: Gao
  Date: 2024/8/6
  Time: 10:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="/student?method=add" method="post">
        用户名：<input type="text" name="name"><br>
        年龄：<input type="text" name="age"><br>
        性别：<input type="text" name="gender"><br>
        班级：<select  name="banjiId">
                <option value="">--请选择班级--</option>
                <c:forEach items="${list}" var="banji">
                    <option value="${banji.id}">${banji.name}</option>
                </c:forEach>
             </select> <br>
        <input type="submit" value="添加">
    </form>

</body>
</html>
